package com.antdesignbackend.backend.service.impl;

import com.antdesignbackend.backend.entity.Classify;
import com.antdesignbackend.backend.entity.entityVo.ClassifyVo;
import com.antdesignbackend.backend.mapper.ClassifyMapper;
import com.antdesignbackend.backend.service.ClassifyService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ClassifyServiceImpl extends ServiceImpl<ClassifyMapper, Classify> implements ClassifyService {
    @Autowired
    private ClassifyMapper classifyMapper;

    @Override
    public List<ClassifyVo> search(QueryWrapper<ClassifyVo> queryWrapper, Page<ClassifyVo> page) {
        return classifyMapper.search(queryWrapper, page);
    }
    @Override
    public Integer count(QueryWrapper<ClassifyVo> queryWrapper) {
        return classifyMapper.count(queryWrapper);
    }
}
